
import { Message } from 'element-ui'

export const initColumns = search => {
    const columns = [
        {
            el: 'str-input',
            label: '姓名',
            value: 'user_name',
            option: {
                width: '200px',
                placeholder: "请输入姓名"
            }
        },
        {
            el: 'iv-select',
            label: '性别',
            value: 'sex',
            option: {
                selects: [
                    {
                        label: '男',
                        value: '1'
                    },
                    {
                        label: '女',
                        value: '0'
                    }
                ]
            }
        },
        {
            el: 'str-input',
            label: '工号',
            value: 'user_no',
            option: {
                width: '200px',
                placeholder: "请输入工号"
            }
        },
        {
            el: 'iv-button',
            option: {
                text: "搜索",
                func: search
            }
        }
    ]
    return columns;
}